import 'package:flutter/material.dart';


/*
右下角圆形返回上层按键
 */

class ReturnButton extends StatefulWidget {
  @override
  _ReturnButtonState createState() => _ReturnButtonState();
}

class _ReturnButtonState extends State<ReturnButton> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: FloatingActionButton(
        child: Text('返回'),
        //监听点击事件
        onPressed: (){
          Navigator.of(context).pop();//返回上层
        },
      ),
    );

  }
}

